package com.tt.service;

import com.tt.dao.UserDao;
import com.tt.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by zangzhonghua on 2017/9/25.
 */
@Service
public class UserService {
    @Autowired
    private UserDao userDao;
    public List<User> findByName(String userName) {
        return this.userDao.findByUserName(userName);
    }
}
